import { useAppStoreWithOut } from "@/store/modules/app"

export const usePageloading = () => {
  const appStore = useAppStoreWithOut()
  const loadStart = () => {
    appStore.setPageLoading(true)
  }
  const loadEnd = () => {
    appStore.setPageLoading(false)
  }
  return {
    loadStart,
    loadEnd
  }
}